/**
 * 
 */
package wangjg.xuexiban.activity.exam.layer;

import wangjg.game.layer.Graphics;
import wangjg.game.layer.Layer;
import wangjg.game.layout.Box;

/**
 * @author wangjg
 *
 */
public class FrameLayer extends Layer{
	private FrameBox frameBox;

	public FrameLayer(int width, int height, int spacing) {
		super(width, height);
		frameBox = new FrameBox(width, height, spacing);
	}
	
	public void addChild(Box child){
		frameBox.addChild(child);
	}

	@Override
	public void paint(Graphics g) {
		frameBox.paint(g);
	}
}
